package com.ufenlei.alarm
{
	[Bindable]
	public class QuickAddItem
	{
		public var at:AlarmTime;
		public var label:String;
		private var _id:uint;
		
		public function QuickAddItem(at:AlarmTime,label:String,id:uint = 0)
		{
			this.at = at;
			this.label = label;
			this._id = id;
		}
		public function toString():String{
			return "[QuickAddItem]"+at+" - "+label;
		}
		public function set id(i:uint):void{
			if(_id){
				_id = i;
			}else{
				throw new Error("cant set id for twice");
			}
		}
		public function get id():uint{
			return this._id
		}
	}
}